home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / utility / pock51.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1997-07-26  |  3KB  |  113 lines

  1. echo off
  2. cls
  3. echo.
  4. echo     PocketD/PocketD Plus installation.
  5. echo.
  6. echo     This will install for DOS, Windows DOS box and optionally for Win 3.x
  7. echo     See INSTALL.TXT for extra installation information for Windows.
  8. if not exist newp.bat goto proceed
  9. D    /Yny/ /'//@t&RInstallation has already been run before. Run again?&w'
  10. if errorlevel 2 goto proceed
  11. echo     Installation Aborted...
  12. echo.
  13. goto exit2
  14.  
  15. :proceed
  16. D    /Yny/ /'//@t&RDo you want proceed with installation ?'
  17. if errorlevel 2 goto ok
  18. :ABORT
  19. echo     Install aborted...
  20. echo.
  21. goto exit2
  22.  
  23. :ok
  24. if exist newp.bat del newp.bat
  25. if exist install.bat goto START
  26. echo ERROR! The INSTALL program must be run from the installation directory
  27. goto exit2
  28.  
  29. :START
  30. D    /I~/.w :path + d.hlp [//$TPocket has previously been installed in $l$2p$B//]
  31. if not errorlevel 1 goto new
  32. D    /Y12/ /'/@t&WI have found an existing PocketD installation//.@t1. Create new installation, or/@t2. Overwrite old//@t?&w'
  33. if errorlevel 2 goto ovr
  34. if not errorlevel 1 goto ABORT
  35. :new
  36. D    /Y12/ /'@t&WInstall://@t1. In current directory, or/@t2. C:\POCKETD\//@t?&w'
  37. if errorlevel 2 goto to_c
  38. if errorlevel 1 goto exist
  39. goto ABORT
  40. :to_c
  41. d /I /ccl c:\PockD
  42. c:
  43. cd \
  44. if not exist PockD\*.* md PockD
  45. cd PockD
  46. :exist
  47. D    /I~/.w [PATH=$l$2r$B;%%PATH%%//] >newp.bat
  48. echo.
  49. echo Old path:
  50. echo %PATH%
  51. echo.
  52. echo New path will be:
  53. D    /I/~?[$l$2r$B;%PATH%]
  54. D    /Yny/ /'/@t&GOK to modify AUTOEXEC.BAT to include path ?&w'
  55. if not errorlevel 1 goto ABORT
  56. if errorlevel 2 goto MODAUTO
  57. echo AUTOEXEC.BAT not modified. You must edit this manually.
  58. goto WIN
  59.  
  60. :ovr
  61. D    /I /.w :path + d.hlp [d /I /ccl $l$r/.w//$l//cd $2r$B]R~
  62. :ovr2
  63.  
  64. :MODAUTO
  65. if exist c:\autoexec.bat goto CONT
  66. ECHO.
  67. ECHO C:\AUTOEXEC.BAT not found
  68. ECHO.
  69. goto WIN
  70.  
  71. :CONT
  72. if exist newp.bat type NEWP.BAT>>c:\autoexec.bat
  73.  
  74. :WIN
  75. D    /Yny/ /'/@t&WDo you want to install for Windows (3.x@/95) ?&w'
  76. if not errorlevel 1 goto ABORT
  77. if errorlevel 2 goto WINOK
  78. echo.
  79. echo Windows installation skipped
  80. echo.
  81. goto exit
  82.  
  83. :WINOK
  84. D    /Yny/ /'@t&WAre you running Windows 3.x@/3.xx ?&w'
  85. if not errorlevel 1 goto ABORT
  86. if errorlevel 2 goto WIN3
  87. echo.
  88. echo     DOS and Windows DOS Box Installation complete...
  89. echo.
  90. echo     (Not running Windows 3.x/3.xx.)
  91. echo.
  92. D    /Y /'@t&RWindows 95&w and &RWindows NT&w requires the user to/@tre-start Windows and click on "&GGROUP.GRP&w" inside'
  93. echo     the original install directory complete the installation.
  94. echo.
  95. pause
  96. if exist newp.bat newp
  97. goto exit2
  98.  
  99. :WIN3
  100. echo     Windows 3.x/3.xx install
  101. echo.
  102. WINSTALL GROUP.GRP POCKETD.ICO POCKETD.TXT
  103.  
  104. :exit
  105. echo.
  106. echo     DOS and Windows DOS Box Installation complete...
  107. echo.
  108. echo     Re-start Windows to complete the installation
  109. echo.
  110. pause
  111. if exist newp.bat newp
  112. :exit2
  113.